import React from 'react'
import { Switch, Route, Redirect } from 'react-router-dom';
import Ridgepole from './index'
import List from './live'
function Default(props) {
    const baseUrl = props.match.path;
    return (
        <div>
            <Switch>
                <Route path={baseUrl + "/ridgepole"} component={Ridgepole} />
                <Route path={baseUrl + "/list"} component={List} />
                {/* <Route path={baseUrl + '/ridgepole'} component={Ridgepole}></Route> */}
                {/* <Route path={baseUrl + '/list'} component={List}></Route> */}
                {/* <Redirect exact from={baseUrl} to={baseUrl + '/list'} /> */}
            </Switch>
        </div>
    )
}

export default Default;